package com.scada.util;

import java.util.HashMap;
import java.util.Map;

public class CalculationScore {
	
	//严重违规 扣20分
	public static final Integer SERIOUS = 20;
	//较严重违规 扣10分
	public static final Integer MORE_SERIOUS = 10;
	//一般违规 扣5分
	public static final Integer GENERALLY = 5;
	//轻微违规 扣3分
	public static final Integer SLIGHT = 3;
	//任务未完成 扣1分
	public static final Integer MISSION_FAILED = 1;
	
	public static final Map<String, Integer> scoreMap = new HashMap<String, Integer>(){{
		put("严重违规", 20);
		put("较严重违规", 10);
		put("一般违规", 5);
		put("轻微违规", 3);
		put("违停/任务未完成", 1);
		put("20", 20);
		put("10", 10);
		put("5", 5);
		put("3", 3);
		put("1", 1);
	}};
	
	public static Integer calculationPeccancy(Integer score){
		if(score >= 6){
			return SERIOUS;
		}else if(score == 3){
			return MORE_SERIOUS;
		}else if(score == 2){
			return GENERALLY;
		}else if(score == 1){
			return SLIGHT;
		}else{
			return 0;
		}
	}
	
	public static Integer calculationAvg(Integer totle, Integer per){
		Integer value = totle/per;
		if(totle%per == 0){
			return value;
		}else{
			return ++value;
		}
	}
	
	public static Integer calculationHour(Integer totle, Integer per){
		return totle/per;
	}
	
	public static Integer calculationMin(Integer totle, Integer per){
		return (totle%per)/60;
	}
	
	//千公里换算
	public static Integer calculationAvg(Integer totle, Double km, Integer per){
		if(km == null || km == 0){
			return 0;
		}
		return (int) Math.round((totle/km)*1000);
		
	}
	
	public static Integer calculationState(Integer per, Integer totle){
		if(per <= totle){
			return 1;
		}else if(per/totle >= 3){
			return 3;
		}else{
			return 2;
		}
	}
	
	public static String calculationPersonalLevel(Double d){
		if(d <= .03){
			return "富豪";
		}else if(d >.03 && d <= .1){
			return "大财主";
		}else if(d >.1 && d <= .2){
			return "小财主";
		}else if(d >.2 && d <= .3){
			return "商人";
		}else if(d >.3 && d <= .4){
			return "富农";
		}else if(d >.4 && d <= .5){
			return "中农";
		}else if(d >.5 && d <= .6){
			return "贫农";
		}else if(d >.6 && d <= .7){
			return "长工";
		}else if(d >.7 && d <= .8){
			return "短工";
		}else{
			return "包身工";
		}
	}
	
	public static String calculationTeamLevel(Integer d){
		if(d <= 3){
			return "上将";
		}else if(d > 3 && d <= 6){
			return "中将";
		}else if(d > 6 && d <= 10){
			return "少将";
		}else if(d > 10 && d <= 15){
			return "大校";
		}else if(d > 15 && d <= 20){
			return "上校";
		}else if(d > 20 && d <= 25){
			return "中校";
		}else if(d > 25 && d <= 30){
			return "少校";
		}else if(d > 30 && d <= 35){
			return "上尉";
		}else if(d > 36 && d <= 40){
			return "中尉";
		}else{
			return "少尉";
		}
	}
	
	public static final Map<String, Double> kmMap = new HashMap<String, Double>();
	static{
		kmMap.put("ZHANYQ",Double.valueOf("15630.75"));
		kmMap.put("chenld",Double.valueOf("36743.78"));
		kmMap.put("lajxxb",Double.valueOf("19255.37"));
		kmMap.put("wann01",Double.valueOf("30901.18"));
		kmMap.put("lingy2",Double.valueOf("56158.77"));
		kmMap.put("LuoLM",Double.valueOf("9808.83"));
		kmMap.put("CHENW8",Double.valueOf("8023.98"));
		kmMap.put("ximz00",Double.valueOf("31078.16"));
		kmMap.put("yangpq",Double.valueOf("46308.13"));
		kmMap.put("zhanq3",Double.valueOf("36285.13"));
		kmMap.put("lujy00",Double.valueOf("52987.72"));
		kmMap.put("lyqxbu",Double.valueOf("54659.97"));
		kmMap.put("xuct00",Double.valueOf("21289.26"));
		kmMap.put("lldu0l",Double.valueOf("13899.82"));
		kmMap.put("maocy0",Double.valueOf("51997.32"));
		kmMap.put("yehh00",Double.valueOf("27737.9"));
		kmMap.put("zmjhgc",Double.valueOf("26101.01"));
		kmMap.put("chenn3",Double.valueOf("14469.54"));
		kmMap.put("luoex0",Double.valueOf("27555.23"));
		kmMap.put("panqb1",Double.valueOf("71922.63"));
		kmMap.put("RenCF0",Double.valueOf("52930.12"));
		kmMap.put("zhanow",Double.valueOf("21906.71"));
		kmMap.put("litw00",Double.valueOf("44073.43"));
		kmMap.put("lianq0",Double.valueOf("37343.5"));
		kmMap.put("ywpepl",Double.valueOf("38190.78"));
		kmMap.put("zhbvdz",Double.valueOf("23022.4"));
		kmMap.put("zhouy5",Double.valueOf("14265.86"));
		kmMap.put("zhujx0",Double.valueOf("3369.35"));
		kmMap.put("jinqs0",Double.valueOf("7782.8"));
		kmMap.put("YIYGTE",Double.valueOf("3450.04"));
		kmMap.put("MISZ00",Double.valueOf("3199.54"));
		kmMap.put("chenz2",Double.valueOf("70636.33"));
		kmMap.put("shijw0",Double.valueOf("34243.36"));
		kmMap.put("xudiw5",Double.valueOf("6719.68"));
		kmMap.put("CUIC00",Double.valueOf("1822.83"));
		kmMap.put("zhanq4",Double.valueOf("6417.82"));
		kmMap.put("zhanjf",Double.valueOf("64601.8"));
		kmMap.put("ZouXC0",Double.valueOf("18320.19"));
		kmMap.put("lids",Double.valueOf("42190.67"));
		kmMap.put("cdyom1",Double.valueOf("73664.11"));
		kmMap.put("kuanqh",Double.valueOf("106405.87"));
		kmMap.put("liq008",Double.valueOf("54780.83"));
		kmMap.put("susg00",Double.valueOf("100979.4"));
		kmMap.put("sunn01",Double.valueOf("39788.96"));
		kmMap.put("wenyz1",Double.valueOf("124099.39"));
		kmMap.put("ylbtyw",Double.valueOf("7259.97"));
		kmMap.put("yuxkc7",Double.valueOf("99047.59"));
		kmMap.put("zhanc4",Double.valueOf("48314.86"));
		kmMap.put("zhanrw",Double.valueOf("5838.74"));
		kmMap.put("YangFC",Double.valueOf("4453.65"));
		kmMap.put("lpjhrd",Double.valueOf("1641.67"));
		kmMap.put("ZhangXD",Double.valueOf("32351.62"));
		kmMap.put("chensi",Double.valueOf("58409.43"));
		kmMap.put("chenzy",Double.valueOf("31551.24"));
		kmMap.put("daihg0",Double.valueOf("129157.73"));
		kmMap.put("guody",Double.valueOf("48202.73"));
		kmMap.put("lih004",Double.valueOf("57214.23"));
		kmMap.put("liufl0",Double.valueOf("90134.58"));
		kmMap.put("liuxrs",Double.valueOf("43500.78"));
		kmMap.put("LiuYC0",Double.valueOf("124201.9"));
		kmMap.put("LRYC8E",Double.valueOf("19215.35"));
		kmMap.put("tianhw",Double.valueOf("14050.48"));
		kmMap.put("xurb00",Double.valueOf("104828.73"));
		kmMap.put("zhanz5",Double.valueOf("76281.51"));
		kmMap.put("czjb9m",Double.valueOf("17064.3"));
		kmMap.put("chenyj",Double.valueOf("38266.25"));
		kmMap.put("chenqg",Double.valueOf("19746.03"));
		kmMap.put("fanxh0",Double.valueOf("117148.87"));
		kmMap.put("guw000",Double.valueOf("91815.46"));
		kmMap.put("huana1",Double.valueOf("50374.72"));
		kmMap.put("ligh01",Double.valueOf("28019.63"));
		kmMap.put("LIHL00",Double.valueOf("99319.25"));
		kmMap.put("limgwp",Double.valueOf("25220.59"));
		kmMap.put("lebjld",Double.valueOf("24846.6"));
		kmMap.put("liuxw0",Double.valueOf("58126.07"));
		kmMap.put("lvjx00",Double.valueOf("127391.27"));
		kmMap.put("tanlf1",Double.valueOf("78598.35"));
		kmMap.put("wulq02",Double.valueOf("3853.09"));
		kmMap.put("xllixw",Double.valueOf("42823.15"));
		kmMap.put("YKKJKF",Double.valueOf("14028.96"));
		kmMap.put("zhangm",Double.valueOf("107037.3"));
		kmMap.put("zhanr0",Double.valueOf("88264.32"));
		kmMap.put("zhaoxz",Double.valueOf("94522.01"));
		kmMap.put("zhouq1",Double.valueOf("51777.24"));
		kmMap.put("lwhmlp",Double.valueOf("9923.17"));
		kmMap.put("XUYL02",Double.valueOf("866.34"));
		kmMap.put("CPY5JH",Double.valueOf("26904.04"));
		kmMap.put("zdw6g6",Double.valueOf("63541.67"));
		kmMap.put("cep39v",Double.valueOf("26769.46"));
		kmMap.put("songb1",Double.valueOf("3458.56"));
		kmMap.put("fumq00",Double.valueOf("120628.19"));
		kmMap.put("jkft90",Double.valueOf("57506.51"));
		kmMap.put("LIH00C",Double.valueOf("70829.39"));
		kmMap.put("liuzg1",Double.valueOf("82339.23"));
		kmMap.put("luygpt",Double.valueOf("44755.58"));
		kmMap.put("mael00",Double.valueOf("89461.22"));
		kmMap.put("shenw1",Double.valueOf("64491.06"));
		kmMap.put("ttztb6",Double.valueOf("51225.31"));
		kmMap.put("wangdp",Double.valueOf("65438.27"));
		kmMap.put("wmy9k5",Double.valueOf("30713.56"));
		kmMap.put("yangsz",Double.valueOf("1828.16"));
		kmMap.put("zhant2",Double.valueOf("3514.68"));
		kmMap.put("Zhangzg",Double.valueOf("36047.44"));
		kmMap.put("chenls",Double.valueOf("85626.3"));
		kmMap.put("dvw21t",Double.valueOf("15628.35"));
		kmMap.put("jianzj",Double.valueOf("79809.13"));
		kmMap.put("lih001",Double.valueOf("107978.66"));
		kmMap.put("lilbkx",Double.valueOf("33935.7"));
		kmMap.put("lsscy3",Double.valueOf("35393.12"));
		kmMap.put("ryfna7",Double.valueOf("59627.02"));
		kmMap.put("SHLV33",Double.valueOf("8847.24"));
		kmMap.put("wangda",Double.valueOf("59081.56"));
		kmMap.put("waxqyh",Double.valueOf("21859.73"));
		kmMap.put("wuxl00",Double.valueOf("123860.7"));
		kmMap.put("xuhgye",Double.valueOf("53362.9"));
		kmMap.put("yangc5",Double.valueOf("111945.92"));
		kmMap.put("zhanxy",Double.valueOf("36496.2"));
		kmMap.put("CBM254",Double.valueOf("11544.4"));
		kmMap.put("PDW32T",Double.valueOf("2879.26"));
		kmMap.put("zhjfw9",Double.valueOf("27770.44"));
		kmMap.put("chjtwh",Double.valueOf("51739.46"));
		kmMap.put("chenw2",Double.valueOf("54324.97"));
		kmMap.put("gaop00",Double.valueOf("26684.33"));
		kmMap.put("gaogy0",Double.valueOf("80475.33"));
		kmMap.put("hejt00",Double.valueOf("22192.08"));
		kmMap.put("huanq0",Double.valueOf("102370.02"));
		kmMap.put("liy6mr",Double.valueOf("36576.27"));
		kmMap.put("LJJGEX",Double.valueOf("60321.42"));
		kmMap.put("liwz00",Double.valueOf("114215.82"));
		kmMap.put("lixb01",Double.valueOf("95427.81"));
		kmMap.put("liy3",Double.valueOf("15918.23"));
		kmMap.put("ljqijp",Double.valueOf("43661.74"));
		kmMap.put("luoch0",Double.valueOf("111119.47"));
		kmMap.put("yaos00",Double.valueOf("29927.9"));
		kmMap.put("zyjxuc",Double.valueOf("24103.57"));
		kmMap.put("zhcgmm",Double.valueOf("1479.05"));
		kmMap.put("anhw00",Double.valueOf("5061.69"));
		kmMap.put("chenb3",Double.valueOf("62566.56"));
		kmMap.put("dingt1",Double.valueOf("36042.53"));
		kmMap.put("huanjf",Double.valueOf("62812.48"));
		kmMap.put("JIANL0",Double.valueOf("77777.83"));
		kmMap.put("lmyiiz",Double.valueOf("36693.47"));
		kmMap.put("lycla3",Double.valueOf("45806.5"));
		kmMap.put("sunhb0",Double.valueOf("72595.76"));
		kmMap.put("yangj9",Double.valueOf("80127.66"));
		kmMap.put("yufj00",Double.valueOf("13503.81"));
		kmMap.put("zhonggw",Double.valueOf("30242.51"));
		kmMap.put("zhouhl",Double.valueOf("96676"));
		kmMap.put("ZHUANGY",Double.valueOf("30341.05"));
		kmMap.put("zxh7q2",Double.valueOf("39834.87"));
		kmMap.put("LIYFC3",Double.valueOf("8089.19"));
		kmMap.put("liujq0",Double.valueOf("2789.93"));
		kmMap.put("luxy01",Double.valueOf("76232.13"));
		kmMap.put("masju2",Double.valueOf("19194.92"));
		kmMap.put("suntt0",Double.valueOf("32350.49"));
		kmMap.put("LMJXPN",Double.valueOf("4477.26"));
		kmMap.put("zhanby",Double.valueOf("54459.63"));
		kmMap.put("chenyi",Double.valueOf("80884.1"));
		kmMap.put("d6ngjl",Double.valueOf("52383.1"));
		kmMap.put("lhbcnr",Double.valueOf("60164.12"));
		kmMap.put("rax1ab",Double.valueOf("15738.42"));
		kmMap.put("sunxy0",Double.valueOf("128026.85"));
		kmMap.put("wwws3f",Double.valueOf("34668.88"));
		kmMap.put("wlj1ls",Double.valueOf("21135.37"));
		kmMap.put("yueq00",Double.valueOf("9738.89"));
		kmMap.put("zhanfl",Double.valueOf("22733.93"));
		kmMap.put("hanpf0",Double.valueOf("34783.23"));
		kmMap.put("bsshui",Double.valueOf("2221.77"));
		kmMap.put("LJBTGH",Double.valueOf("29715.21"));
		kmMap.put("maoj00",Double.valueOf("8884.98"));
		kmMap.put("renk00",Double.valueOf("112755.23"));
		kmMap.put("sjj2dh",Double.valueOf("17868.53"));
		kmMap.put("hjcsrx",Double.valueOf("8543.14"));
		kmMap.put("wanll0",Double.valueOf("59091.7"));
		kmMap.put("chenlk",Double.valueOf("32123.6"));
		kmMap.put("cuiw01",Double.valueOf("46417.34"));
		kmMap.put("hhyq0r",Double.valueOf("25170.99"));
		kmMap.put("chenjw",Double.valueOf("64672.99"));
		kmMap.put("ljsg0o",Double.valueOf("20805.91"));
		kmMap.put("XionHJ",Double.valueOf("1295.35"));
		kmMap.put("huk000",Double.valueOf("4784.61"));
		kmMap.put("cxgf2v",Double.valueOf("33423.72"));
		kmMap.put("dengh0",Double.valueOf("82069.32"));
		kmMap.put("dengar",Double.valueOf("2452.39"));
		kmMap.put("hqtpxm",Double.valueOf("48086.06"));
		kmMap.put("huandw",Double.valueOf("72432.51"));
		kmMap.put("ldws0o",Double.valueOf("17040.76"));
		kmMap.put("ytzse4",Double.valueOf("67174.93"));
		kmMap.put("ybthhq",Double.valueOf("58981.56"));
		kmMap.put("zhanbs",Double.valueOf("95229.79"));
		kmMap.put("zhansp",Double.valueOf("37283.84"));
		kmMap.put("dengm2",Double.valueOf("36513.55"));
		kmMap.put("d9ngdy",Double.valueOf("27459.46"));
		kmMap.put("liulj0",Double.valueOf("26954.58"));
		kmMap.put("qingsl",Double.valueOf("79374.57"));
		kmMap.put("xul001",Double.valueOf("103818"));
		kmMap.put("xuq3fx",Double.valueOf("16880.24"));
		kmMap.put("yuany3",Double.valueOf("52122.86"));
		kmMap.put("chenmw",Double.valueOf("51585.64"));
		kmMap.put("houb00",Double.valueOf("58255.73"));
		kmMap.put("LICZ",Double.valueOf("25945.42"));
		kmMap.put("ximywc",Double.valueOf("4978.42"));
		kmMap.put("JIBG7I",Double.valueOf("37721.74"));
		kmMap.put("ZhanTF",Double.valueOf("38455.38"));
		kmMap.put("ZHUJP",Double.valueOf("30214.81"));
	}
	
	public static final Map<String, Integer> safeStarMap = new HashMap<String, Integer>();
	static{
		safeStarMap.put("liwz00",4);
		safeStarMap.put("renk00",4);
		safeStarMap.put("hanpf0",4);
		safeStarMap.put("wwws3f",4);
		safeStarMap.put("jianzj",4);
		safeStarMap.put("ZHUANGY",4);
		safeStarMap.put("LJBTGH",4);
		safeStarMap.put("fumq00",4);
		safeStarMap.put("sjj2dh",4);
		safeStarMap.put("ybthhq",4);
		safeStarMap.put("tanlf1",4);
		safeStarMap.put("lih001",4);
		safeStarMap.put("d6ngjl",4);
		safeStarMap.put("wangda",4);
		safeStarMap.put("zhanz5",4);
		safeStarMap.put("liufl0",4);
		safeStarMap.put("suntt0",4);
		safeStarMap.put("huandw",4);
		safeStarMap.put("ytzse4",4);
		safeStarMap.put("masju2",4);
		safeStarMap.put("mael00",3);
		safeStarMap.put("liq008",4);
		safeStarMap.put("dvw21t",2);
		safeStarMap.put("ldws0o",3);
		safeStarMap.put("lih004",3);
		safeStarMap.put("zhanq3",4);
		safeStarMap.put("wann01",3);
		safeStarMap.put("hejt00",3);
		safeStarMap.put("luxy01",3);
		safeStarMap.put("lyqxbu",4);
		safeStarMap.put("xuhgye",3);
		safeStarMap.put("liy3",3);
		safeStarMap.put("liuxrs",4);
		safeStarMap.put("zhansp",4);
		safeStarMap.put("LIH00C",4);
		safeStarMap.put("ttztb6",3);
		safeStarMap.put("hjcsrx",2);
		safeStarMap.put("dengh0",3);
		safeStarMap.put("shenw1",4);
		safeStarMap.put("sunxy0",3);
		safeStarMap.put("xllixw",4);
		safeStarMap.put("ximz00",3);
		safeStarMap.put("lsscy3",3);
		safeStarMap.put("lajxxb",3);
		safeStarMap.put("zyjxuc",1);
		safeStarMap.put("ryfna7",4);
		safeStarMap.put("gaogy0",2);
		safeStarMap.put("ljqijp",2);
		safeStarMap.put("CPY5JH",3);
		safeStarMap.put("LIYFC3",2);
		safeStarMap.put("huanq0",1);
		safeStarMap.put("yufj00",2);
		safeStarMap.put("zmjhgc",3);
		safeStarMap.put("zhanbs",2);
		safeStarMap.put("liulj0",1);
		safeStarMap.put("waxqyh",0);
		safeStarMap.put("czjb9m",3);
		safeStarMap.put("zhouy5",3);
		safeStarMap.put("tianhw",2);
		safeStarMap.put("zhanc4",3);
		safeStarMap.put("cxgf2v",3);
		safeStarMap.put("zxh7q2",2);
		safeStarMap.put("ZouXC0",4);
		safeStarMap.put("zhjfw9",3);
		safeStarMap.put("chjtwh",3);
		safeStarMap.put("zhangm",4);
		safeStarMap.put("LJJGEX",3);
		safeStarMap.put("chenw2",3);
		safeStarMap.put("chenld",2);
		safeStarMap.put("ligh01",3);
		safeStarMap.put("CHENW8",3);
		safeStarMap.put("dingt1",0);
		safeStarMap.put("LRYC8E",1);
		safeStarMap.put("yuxkc7",3);
		safeStarMap.put("fanxh0",3);
		safeStarMap.put("rax1ab",0);
		safeStarMap.put("xuct00",1);
		safeStarMap.put("zhonggw",3);
		safeStarMap.put("bsshui",1);
		safeStarMap.put("zhbvdz",2);
		safeStarMap.put("zhanjf",3);
		safeStarMap.put("yueq00",0);
		safeStarMap.put("xul001",2);
		safeStarMap.put("chenyj",3);
		safeStarMap.put("guody",1);
		safeStarMap.put("CBM254",2);
		safeStarMap.put("liy6mr",3);
		safeStarMap.put("yangc5",2);
		safeStarMap.put("lwhmlp",2);
		safeStarMap.put("xurb00",4);
		safeStarMap.put("chenyi",3);
		safeStarMap.put("wanll0",1);
		safeStarMap.put("lilbkx",2);
		safeStarMap.put("zhouhl",2);
		safeStarMap.put("shijw0",3);
		safeStarMap.put("yangj9",3);
		safeStarMap.put("lycla3",1);
		safeStarMap.put("lixb01",3);
		safeStarMap.put("wuxl00",1);
		safeStarMap.put("PDW32T",0);
		safeStarMap.put("liuzg1",3);
		safeStarMap.put("chensi",1);
		safeStarMap.put("chenb3",3);
		safeStarMap.put("JIANL0",3);
		safeStarMap.put("cuiw01",1);
		safeStarMap.put("cep39v",2);
		safeStarMap.put("maoj00",2);
		safeStarMap.put("lujy00",2);
		safeStarMap.put("lhbcnr",3);
		safeStarMap.put("zdw6g6",2);
		safeStarMap.put("liuxw0",0);
		safeStarMap.put("LMJXPN",1);
		safeStarMap.put("lianq0",1);
		safeStarMap.put("huk000",0);
		safeStarMap.put("SHLV33",1);
		safeStarMap.put("wlj1ls",1);
		safeStarMap.put("lmyiiz",2);
		safeStarMap.put("hqtpxm",2);
		safeStarMap.put("kuanqh",3);
		safeStarMap.put("zhanow",2);
		safeStarMap.put("zhaoxz",2);
		safeStarMap.put("qingsl",2);
		safeStarMap.put("zhanby",2);
		safeStarMap.put("zhcgmm",3);
		safeStarMap.put("wenyz1",2);
		safeStarMap.put("zhouq1",0);
		safeStarMap.put("sunhb0",2);
		safeStarMap.put("XionHJ",2);
		safeStarMap.put("chenlk",1);
		safeStarMap.put("heb9zt",2);
		safeStarMap.put("LiuYC0",2);
		safeStarMap.put("ZhangXD",2);
		safeStarMap.put("songb1",0);
		safeStarMap.put("houb00",2);
		safeStarMap.put("LICZ",2);
		safeStarMap.put("daibg0",2);
		safeStarMap.put("ZHUJP",2);
		safeStarMap.put("ximywc",2);
		safeStarMap.put("ZhanTF",2);
		safeStarMap.put("JIBG7I",2);
		safeStarMap.put("chenmw",2);
		safeStarMap.put("zhans9",2);
		safeStarMap.put("susg00",3);
		safeStarMap.put("wmy9k5",1);
		safeStarMap.put("LuoLM",3);
		safeStarMap.put("sunn01",1);
		safeStarMap.put("yaos00",1);
		safeStarMap.put("lvjx00",1);
		safeStarMap.put("luoch0",2);
		safeStarMap.put("xudiw5",0);
		safeStarMap.put("RenCF0",0);
		safeStarMap.put("yangsz",2);
		safeStarMap.put("guw000",1);
		safeStarMap.put("yangpq",1);
		safeStarMap.put("YIYGTE",0);
		safeStarMap.put("liujq0",2);
		safeStarMap.put("litw00",2);
		safeStarMap.put("lldu0l",1);
		safeStarMap.put("panqb1",2);
		safeStarMap.put("chenjw",0);
		safeStarMap.put("ZHANYQ",0);
		safeStarMap.put("maocy0",0);
		safeStarMap.put("MISZ00",1);
		safeStarMap.put("lingy2",1);
		safeStarMap.put("dengm2",0);
		safeStarMap.put("yuany3",0);
		safeStarMap.put("ljsg0o",1);
		safeStarMap.put("xuq3fx",0);
		safeStarMap.put("wangdp",0);
		safeStarMap.put("huanjf",0);
		safeStarMap.put("XUYL02",0);
		safeStarMap.put("jkft90",1);
		safeStarMap.put("YangFC",1);
		safeStarMap.put("ylbtyw",3);
		safeStarMap.put("lids",2);
		safeStarMap.put("zhujx0",0);
		safeStarMap.put("luygpt",0);
		safeStarMap.put("cdyom1",1);
		safeStarMap.put("lpjhrd",0);
		safeStarMap.put("zhanfl",1);
		safeStarMap.put("YKKJKF",0);
		safeStarMap.put("luoex0",0);
		safeStarMap.put("daihg0",2);
		safeStarMap.put("LIHL00",2);
		safeStarMap.put("HUANGJT",1);
		safeStarMap.put("limgwp",2);
		safeStarMap.put("hhyq0r",1);
		safeStarMap.put("Zhangzg",0);
		safeStarMap.put("zhanxy",0);
		safeStarMap.put("CUIC00",0);
		safeStarMap.put("chenls",1);
		safeStarMap.put("huana1",1);
		safeStarMap.put("zhanq4",1);
		safeStarMap.put("chenn3",1);
		safeStarMap.put("YUAC3H",0);
		safeStarMap.put("dengar",1);
		safeStarMap.put("gaop00",0);
		safeStarMap.put("lebjld",2);
		safeStarMap.put("wulq02",2);
		safeStarMap.put("yehh00",0);
		safeStarMap.put("ywpepl",0);
		safeStarMap.put("jinqs0",0);
		safeStarMap.put("d9ngdy",0);
		safeStarMap.put("zhanrw",1);
		safeStarMap.put("anhw00",2);
		safeStarMap.put("zhanr0",0);
		safeStarMap.put("zhant2",0);
		safeStarMap.put("chenz2",0);
		safeStarMap.put("chenzy",0);
		safeStarMap.put("chenqg",1);
	};
	
	public static Double getKmByEmpNo(String empNo){
		if(kmMap.get(empNo) == null){
			return Double.valueOf("0");
		}
		return kmMap.get(empNo);
	}
}
